//
//  ViewController.m
//  NTBuildOC
//
//  Created by Marcus Yu on 2022/1/14.
//

#import "ViewController.h"
#import "SYMultiLineTextView.h"

@import Masonry;

@interface ViewController ()

@property (nonatomic, strong) SYMultiLineTextView *cardTextView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.view addSubview:self.cardTextView];
    
//    [self.cardTextView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerX.equalTo(self.view);
//        make.top.equalTo(self.view).offset(200);
//        make.width.mas_equalTo(@300);
//        make.height.mas_equalTo(@100);
//    }];
    
//    SYMultiLineTextConfig *config = [[SYMultiLineTextConfig alloc]init];
//    config.text = @"6666";
//    config.textColor = [UIColor blueColor];
//    config.font = [UIFont systemFontOfSize:18];
//    config.textAlignment = NSTextAlignmentLeft;
    
    SYMultiLineTextConfig *config = [SYMultiLineTextConfig defaultConfig];
    
    self.cardTextView.config = config;
    
}

-(SYMultiLineTextView *)cardTextView {
    if (_cardTextView == nil) {
        _cardTextView = [[SYMultiLineTextView alloc] initWithFrame:CGRectMake(10, 300, 350, 100)];
    }
    return _cardTextView;
}



@end
